<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  </script>
 </head>
 <body>

  <t:formvalid formid="formobj" dialog="true"  
  			layout="table" action="trainItemController.do?doUpdate" tiptype="3" >
  			<input type="hidden" name="id" value="${item.id}">
		<table style="" cellpadding="0" cellspacing="1" class="formtable">
				<tr>
					<td align="right">
						<label class="Validform_label">
							培训名称:
						</label>
					</td>
					<td class="value">
					     	 <input id="trainningName" name="trainningName" type="text" 
					     	 value="${item.trainningName }" onkeypress="specialTextValidate()"
					     	 style="width: 200px" class="inputxt"  datatype="*" maxlength="100">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">培训名称</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							培训工种:
						</label>
					</td>
					<td class="value">
					    <t:CommonSelect textField="itemName" value="${item.teachItem.id }" 
					    idField="id" url="dictTeachItemController.do?select" name="teachItemId" datatype="*"></t:CommonSelect>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">培训工种</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							所属实验室:
						</label>
					</td>
					<td class="value">
					    <t:CommonSelect textField="name" value="${item.lab.id }" 
					    idField="id" url="labController.do?common-select" name="labId" datatype="*"></t:CommonSelect>
						<span class="Validform_checktip"></span>
						<label class="Validform_label" style="display: none;">所属实验室</label>
					</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							最大报名人数:
						</label>
					</td>
					<td class="value">
					     	 <input id="maxEnterCount" name="maxEnterCount" type="text" value="${item.maxEnterCount }"
					     	 	style="width: 150px" class="inputxt" maxlength="80" datatype="n">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">报名人数</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							报名开始日期:
						</label>
					</td>
					<td class="value">
					     	 <input id="startEnterDate" readonly="readonly" name="startEnterDate" type="text"
					     	  value='<fmt:formatDate  pattern="yyyy-MM-dd" value="${item.startEnterDate}"/>' 
					     	 style="width: 150px" class="inputxt" maxlength="20">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">报名开始日期</label>
						</td>
				</tr>
				<tr>
					<td align="right">
						<label class="Validform_label">
							报名结束日期:
						</label>
					</td>
					<td class="value">
					     	 <input id="endEnterDate" name="endEnterDate" readonly="readonly" type="text" 
					     	 style="width: 150px" class="inputxt" value='<fmt:formatDate pattern="yyyy-MM-dd" value="${item.endEnterDate}"/>'
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">报名结束日期</label>
					</td>
			   </tr>
			</table>
		</t:formvalid>
		
		<script>
			$(document).ready(function(){
				$('#startEnterDate').attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
				$('#endEnterDate').attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
			});
		</script>
 </body>
